import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/theme.scss'  // 导入主题样式
import '@/styles/dark.scss'   // 导入暗黑模式样式
import { initTheme } from '@/utils/theme'  // 导入主题初始化函数

// 初始化主题
initTheme()

Vue.use(ElementUI, {
  size: 'medium'
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
